import request from "@/utils/request";

export function login(data) {
    return request.post('/users/checkLogin', data)
}
export const accountInfo = (data)=>{
    return  request.get('/users/accountinfo',{params:data})
}
export const accountList = (data)=>{
    return  request.get('/users/list',{params:data})
}
export const accountAdd = (data)=>{
    return  request.post('/users/add',data)
}
export const accountEdit = (data)=>{
    return  request.post('/users/edit',data)
}
export const accountDel = (data)=>{
    return  request.get('/users/del',{params:data})
}
export const accountAvatar = (data)=>{
    return  request.post('/users/avataredit',data)
}